package com.ithe.shopweb.serve.impl;

import com.ithe.shopweb.mapper.LoginMapper;
import com.ithe.shopweb.pojo.Customer;
import com.ithe.shopweb.pojo.Manager;
import com.ithe.shopweb.pojo.resp.CustomerResp;
import com.ithe.shopweb.pojo.resp.ManageResp;
import com.ithe.shopweb.serve.LoginServe;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能：
 * 日期： 2024/5/21 23:55
 */
@Service
public class LoginServeImpl implements LoginServe {

    @Autowired
    private LoginMapper loginMapper;

    @Override
    public CustomerResp queryCustomer(String username, String password) {
        return loginMapper.queryCustomer(username, password);
    }

    @Override
    public Customer searchCustomer(String userID) {
        return loginMapper.searchCustomer(userID);
    }

    @Override
    public ManageResp queryManage(String adminName, String password) {
        return loginMapper.queryManage(adminName, password);
    }

    @Override
    public Manager searchManage(String adminID) {
        return loginMapper.searchManage(adminID);
    }
}
